using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace DrawMapTool
{
    public static class MapUtil
    {
        public static Color GetSystemColor(string color)
        {
            switch (color)
            {
                case "Red":
                    return Color.Red;
                case "RosyBrown":
                    return Color.RosyBrown;
                case "RoyalBlue":
                    return Color.RoyalBlue;
                case "SaddleBrown":
                    return Color.SaddleBrown;
                case "Salmon":
                    return Color.Salmon;
                case "SandyBrown":
                    return Color.SandyBrown;
                case "SeaGreen":
                    return Color.SeaGreen;
                case "SeaShell":
                    return Color.SeaShell;
                case "Sienna":
                    return Color.Sienna;
                case "Silver":
                    return Color.Silver;
                case "SkyBlue":
                    return Color.SkyBlue;
                case "SlateBlue":
                    return Color.SlateBlue;
                case "SlateGray":
                    return Color.SlateGray;
                case "Snow":
                    return Color.Snow;
                case "SpringGreen":
                    return Color.SpringGreen;
                case "SteelBlue":
                    return Color.SteelBlue;
                case "Tan":
                    return Color.Tan;
                case "Teal":
                    return Color.Teal;
                case "Thistle":
                    return Color.Thistle;
                case "Tomato":
                    return Color.Tomato;
                case "Transparent":
                    return Color.Transparent;
                case "Turquoise":
                    return Color.Turquoise;
                case "Violet":
                    return Color.Violet;
                case "Wheat":
                    return Color.Wheat;
                case "White":
                    return Color.White;
                case "Yellow":
                    return Color.Yellow;
                case "YellowGreen":
                    return Color.YellowGreen;
                default:
                    return Color.Black;
            }
        }
    }
}
